package cn.tedu.xuecha.server.infrastructure.data.converter;


import cn.tedu.xuecha.server.bo.ContentBO;
import cn.tedu.xuecha.server.dao.api.query.ContentDBQuery;

import cn.tedu.xuecha.server.protocol.param.ContentParam;
import cn.tedu.xuecha.server.protocol.query.ContentQuery;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class ContentConverter {

    public ContentDBQuery bo2DO(ContentBO contentBO){

        ContentDBQuery contentDBQuery = new ContentDBQuery();
        BeanUtils.copyProperties(contentBO,contentDBQuery);
        return contentDBQuery;
    }
}
